<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Time On 云文档版本管理-登录</title>
    <link rel="stylesheet" href="/static/login/login.css?V=20170505" />
</head>
<body>
<form role="form" action="index.php/Login/login" method="post" name="loginForm" id="loginForm">
<div class="main">
    <div class="title">Time On 云文档版本管理</div>

    <div class="form">
        <span class="username"></span><input type="text" id="username" name="account" class="dinput username_input" />
        <div class="blank20"></div>
        <span class="password"></span><input type="password"  name="pw" id="password" class="dinput passwaord_input">
    </div>
    <div class="submit_div">
        <input type="submit" id="login" class="button fr" value="确认"/>
        <input type="button" id="cancle"  class="button cancal fl" value="取消"/>
    </div>
</div>
</form>
<img src="/img/center/bg2.jpg?V=201314" alt="金山安全数据管理平台">
<script type="text/javascript" src="/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
    $(window).resize(function() {
        var widths = $(document).width();
        var heights = $(document).height();
        $("body img").css({
            "height":heights,
            "width":widths
        });
        $("body .main").css("left",(widths-380)/2);
        $("body .main").css("top",(heights-360)/2);
    });

    $(document).ready(function(){
        var widths = $(document).width();
        var heights = $(document).height();
        $("body img").css({
            "height":heights,
            "width":widths
        });
        $("body .main").css("left",(widths-380)/2);
        $("body .main").css("top",(heights-360)/2);
        //登录帐号检查
        $("#login").click(function(){
            var _account = $("#username").val();
            var _pw = $("#password").val();
            if(_account == "" || _account == undefined || _account == null){
                alert("用户名不能为空111");
                return false;
            }
            if(_pw == "" || _pw == undefined || _pw == null){
                alert("密码不能为空");
                return false;
            }
            return true;
        });
        $("#cancle").click(function () {
            $("#username").val("");
            $("#password").val("");
        });
    });
</script>
</body>
</html>